package com.lzw.tool.tree;


import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
public class ResourceTree<T> {
    public ResourceTree(T date) {
        this.data = date;
        level = 0;
    }

    public ResourceTree(T date, int level) {
        this.data = date;
        this.level = level;
    }

    private T data;
    private int level;
    private List<ResourceTree<T>> children;
}